home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_5.lha
/
7_5
/
7_5a3_line.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
489b
|
26 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ Exercise 7.5
/ Rectangle derived from a line.
/ the data in available to derived classes,
/ but otherwise private.
lass line : public shape
rotected:
point w, e;
ublic:
point north();
point east();
point south();
point west();
void move(int a, int b);
void draw();
line(point a, point b);
line(point a, int l);
;